<div id="foodcategory-add-edit">
    <div class="title">
        修改食材分类信息
    </div>
    <form action="__APP__/FoodCategory/update" method="post">
        <input type="hidden" name="id" value="<{$data.id}>" />
        <input type="hidden" name="image" class="pic" value="<{$data.image}>" readonly="readonly" />
        <table>
            <tr>
                <th>所属栏目：</th>
                <td>
                    <select name="foodsectionid" style="position:relative;left:5px;">
                        <volist name="foodsectioninfo" id="vo">
                            <eq name="vo['id']" value="$data.foodsectionid">
                                    <option value="<{$vo['id']}>" selected="selected"><{$vo['name']}></option>
                                <else/>
                                    <option value="<{$vo.id}>"><{$vo.name}></option>
                            </eq>
                        </volist>
                    </select>
                </td>
            </tr>
            <tr><th>分类名称：</th><td><input type="text" name="name" value="<{$data.name}>" /></td></tr>
            <tr><th>分类别名：</th><td><input type="text" name="alias" value="<{$data.alias}>" /></td></tr>
            <tr><th style="vertical-align:top;"><a href="javascript:;" class="upload">修改封面</a>：</th>
                <td class="img">
                    <empty name="data.image">
                            <img src="__PUBLIC__/Content/FoodCategory/default.jpg" />
                        <else/>
                            <img src="__PUBLIC__/Content/FoodCategory/<{$data.image}>" />
                    </empty>
                </td></tr>
            <tr><th>栏目排序：</th><td><input type="text" name="sort" value="<{$data.sort}>" /></td></tr>
            <eq name="data.publish" value="1">
                    <tr><th>是否发布：</th><td><input type="radio" checked="checked" name="publish" value="1" />是
                    <input type="radio" name="publish" value="0" />否</td></tr>
                <else/>
                    <tr><th>是否发布：</th><td><input type="radio" name="publish" value="1" />是
                    <input type="radio" name="publish" value="0" checked="checked" />否</td></tr>
            </eq>
            <tr><th style="vertical-align:top;">栏目描述：</th><td><textarea name="description"><{$data.description}></textarea></td></tr>
            <tr><td></td><td><input type="submit" class="submit" value="修改分类" /></td></tr>
        </table>
    </form>
</div>
<script type="text/javascript" src="../Public/js/foodcategory.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ajaxupload.js"></script>